import turtle                              #导入turtle

turtle.setup(width=0.6,height=0.6)         #画笔设置
turtle.pensize(5)
turtle.pencolor('red')
turtle.speed(3)
turtle.hideturtle()

turtle.penup()                             #左半边心
turtle.goto(0,150)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor('red')
turtle.setheading(90)
turtle.circle(100,extent=180)
turtle.circle(250,extent=78.5)

turtle.penup()                             #右半边心
turtle.goto(0,0)
turtle.goto(0,150)
turtle.pendown()
turtle.setheading(90)
turtle.circle(-100,extent=180)
turtle.circle(-250,extent=78.5)
turtle.end_fill()

turtle.pensize(10)                         #5
turtle.penup()
turtle.goto(-150,-120)
turtle.pendown()
turtle.goto(-220,-120)
turtle.goto(-220,-190)
turtle.goto(-150,-190)
turtle.goto(-150,-260)
turtle.goto(-220,-260)

turtle.penup()                             #2
turtle.goto(-35,-120)
turtle.pendown()
turtle.goto(35,-120)
turtle.goto(35,-190)
turtle.goto(-35,-190)
turtle.goto(-35,-260)
turtle.goto(35,-260)

turtle.penup()                             #0
turtle.goto(150,-120)
turtle.pendown()
turtle.goto(150,-260)
turtle.goto(220,-260)
turtle.goto(220,-120)
turtle.goto(150,-120)

turtle.done()                              #完成